package org.jeecg.modules.report.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.poi.ss.formula.functions.T;
import org.jeecg.modules.report.entity.ReportConfigInfo;
import org.jeecg.modules.report.entity.ReportConfig;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.report.entity.ReportConfigVideo;
import org.jeecg.modules.report.vo.StationBean;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 战图显示配置
 * @Author: jeecg-boot
 * @Date:   2019-08-20
 * @Version: V1.0
 */
public interface IReportConfigService extends IService<ReportConfig> {


	public List<ReportConfig> findConfigPage(IPage<ReportConfig> page, ReportConfig reportConfig);

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(ReportConfig reportConfig,List<ReportConfigInfo> reportConfigInfoList,List<ReportConfigVideo> reportConfigVideoList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(ReportConfig reportConfig,List<ReportConfigInfo> reportConfigInfoList,List<ReportConfigVideo> reportConfigVideoList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	List<ReportConfig> findConfigByProjectId(String type, String projectId);

	List<ReportConfigInfo> findConfigInfoByProjectId(String type, String projectId);

    List<ReportConfig> findConfigByDepartIdOnly(String departType, String departId);

    List<ReportConfig> findAll();

    int saveBatch(List<ReportConfig> reportConfigList);

    List<ReportConfig> findListByUser(StationBean params);
}
